package com.centaline.androidsalesblog.api.sale;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.SmsCodeRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 发送短信验证码api
 * Created by Lihq on 2016/1/12.
 */
public class SmsCodeApi extends SaleApi<SmsCodeRo>{

    private String mobile;

    public void setMobile(String mobile){
        this.mobile = mobile;
    }

    public SmsCodeApi(Class<?> tag, Class<SmsCodeRo> aClass, IResponseListener<SmsCodeRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    @Override
    public int getMethod() {
        return Request.Method.GET;
    }

    @Override
    public void setParams() {
        putParams("mobile",mobile);
    }


    @Override
    public String getPath() {
        return "SmsCode";
    }

}


